package com.infore.common.model.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.infore.common.base.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 模板分组
 * </p>
 *
 * @author lijh
 * @since 2023-01-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_base_group")
public class TBaseGroup extends BaseModel<TBaseGroup> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 分组名称
     */
    @TableField("group_name")
    private String groupName;
    /**
     * 分组类型：查询_SELECT,新增_INSERT,修改_UPDATE,删除_DELETE
     */
    @TableField("group_type")
    private String groupType;
    /**
     * 描述
     */
    private String description;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
